package com.example.scqceshi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author sun
 * @date 2023-06-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="su_user 表对应的实体对象", description="用户")
@TableName("su_user")
public class SuUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "字典 用户类型   系统用户 系统管理  超级管理")
    @TableField(value = "userType")
    private Long usertype;

    @ApiModelProperty(value = "邮箱")
    @TableField(value = "email")
    private String email;

    @ApiModelProperty(value = "手机号")
    @TableField(value = "phonenumber")
    private String phonenumber;

    @ApiModelProperty(value = "字典 性别类型     女  男")
    @TableField(value = "sex")
    private String sex;

    @ApiModelProperty(value = "头像")
    @TableField(value = "avatar")
    private String avatar;

    @ApiModelProperty(value = "账号")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "字典 账号状态 是否启用    启用   禁用")
    @TableField(value = "status")
    private Boolean status;

    @ApiModelProperty(value = "登录次数")
    @TableField(value = "numberoflogins")
    private Integer numberoflogins;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateTime")
    private LocalDateTime updatetime;

    @ApiModelProperty(value = "更新人 ID")
    @TableField(value = "updateby")
    private Long updateby;

    @ApiModelProperty(value = "企业 ID")
    @TableField(value = "enterpriseId")
    private Long enterpriseid;

    @ApiModelProperty(value = "字典 是否删除   已删除   未删除")
    @TableField(value = "isdel")
    private Boolean isdel;

    @ApiModelProperty(value = "最后登录时间")
    @TableField(value = "loginDate")
    private LocalDateTime logindate;

    @ApiModelProperty(value = "职务  ID")
    @TableField(value = "officeId")
    private Long officeid;

    @ApiModelProperty(value = "部门ID")
    @TableField(value = "departmentId")
    private Long departmentid;

    @ApiModelProperty(value = "用户姓名")
    @TableField(value = "name")
    private String name;
}